package com.note.simpleadmin.module.system.controller;

import com.note.simpleadmin.module.system.service.BgMenuService;
import com.note.simpleadmin.module.system.vo.BgMenuVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/***
 *@ClaseName:IndexController
 *
 *@Decription:
 *
 *@Author: xubingbing
 *
 *@Date:2019/1/27 0027 17:57
 */
@Controller
public class IndexController {
    @Autowired
    private BgMenuService bgMenuService;
    @RequestMapping(value = "index")
    public String index(HttpServletRequest request)
    {
        List<BgMenuVo> bgMenuVoList=bgMenuService.findAll();
        request.setAttribute("menuList",bgMenuVoList);
        return "index";
    }
}
